<?php

namespace App\Models;

class RemindModel extends BaseModel
{
   protected $table ='wechat_reminders';

   // 关联备忘录 一对一
    public function memos()
    {
        return $this->hasOne(MemoModel::class, 'id', 'memos_id');
    }

    // 关联用户 一对一
    public function user()
    {
        return $this->hasOne(WechatUserModel::class, 'id', 'user_id');
    }
}
